import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import router from './router/router.js'

import axios from 'axios'
import VueAxios from 'vue-axios'


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// import ViewUIPlus from 'view-ui-plus'
// import 'view-ui-plus/dist/styles/viewuiplus.css'

import { createPinia } from 'pinia'
const pinia = createPinia()


router.beforeEach((to, from, next) => {
  if (to.meta && to.meta.title) {
    document.title = to.meta.title;
  }
  next();
});

createApp(App)
  .use(router)
  .use(VueAxios, axios)
  .use(ElementPlus)
  // .use(ViewUIPlus)
  .use(pinia)
  .mount('#app')
